#FROM centos:centos7.9.2009

#编译nginx的基础镜像
FROM registry.cn-hangzhou.aliyuncs.com/baimeidashu/bmds:centos-centos7.9.2009
MAINTAINER zhaozhiyong  "715740383@qq.com"

# 配置国内软件源
RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup \
   && curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
   && sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo \
   &&   yum -y install git wget gcc make zlib-devel gcc-c++ libtool openssl openssl-devel patch pcre

